home *** CD-ROM | disk | FTP | other *** search
Wrap
<HTML> <HTML> <HEAD> <LINK REL="stylesheet" TYPE="text/css" HREF="%5css/default.css"> </HEAD> <BODY TOPMARGIN="0" LEFTMARGIN="5" MARGINHEIGHT="0" MARGINWIDTH="5" onload="onInit();"> <script language="Javascript"> //LOCALIZATION STRINGS var _strConfirm = "Changes to member groups can take from several seconds to several minutes, depending on the size of the groups"; var _strIgnored = "When NT Authentication is disabled all other changes are ignored"; </script> <DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;z-index:99;"></DIV> <SCRIPT SRC="%8js/helps.js"></SCRIPT> <SCRIPT SRC="%9js/tips.js"></SCRIPT> <SCRIPT LANGUAGE="JavaScript"> var checked_bool = false; function modifyForm() { // Modify the check-box document.ntauth_prop.ntAvailable.value = document.ntauth_prop.ntAvail.checked; // Set up the output value member_groups = ""; first = true; for (count = 0; count < document.ntauth_prop.ntMemberGroups.options.length; ++count) { if (!first) { member_groups += "+"; } else first = false; current_group = document.ntauth_prop.ntMemberGroups.options[count]; member_groups += current_group.value; // De-select all entries on the select box current_group.selected = false; } // Check to see if we are changing other values BUT the authentication is still turned off if ((!document.ntauth_prop.ntAvail.checked && !checked_bool) && ((member_groups.toUpperCase() != document.ntauth_prop.input_string.value.toUpperCase()) || (document.ntauth_prop.input_domain.value.toUpperCase() != document.ntauth_prop.ntDefaultDomain.value.toUpperCase()) || (document.ntauth_prop.input_radio.value != document.ntauth_prop.alias_map_rad.value))) { alert(_strIgnored); return; } // Check to see if the member groups are different from when this page was loaded else if (member_groups.toUpperCase() != document.ntauth_prop.input_string.value.toUpperCase()) { if(!confirm(_strConfirm)) return; } // Build the final string document.ntauth_prop.ntFinalMemberGroups.value = member_groups; document.ntauth_prop.submit() } function deleteGroup() { for (count = document.ntauth_prop.ntMemberGroups.length -1; count >= 0; --count) { current_group = document.ntauth_prop.ntMemberGroups.options[count]; if (current_group.selected) { // remove the object from the current parents document.ntauth_prop.ntMemberGroups.options[count] = null; } } } function addGroup() { // If it's not already there already for (count = 0; count < document.ntauth_prop.ntMemberGroups.length; ++count) { current_group = document.ntauth_prop.ntMemberGroups.options[count]; if (current_group.text.toUpperCase() == document.ntauth_prop.newMemberGroup.value.toUpperCase()) { // It's already there document.ntauth_prop.newMemberGroup.value = ""; return; } } // Insert each string into the listbox if (document.ntauth_prop.newMemberGroup.value != "") { option = new Option(document.ntauth_prop.newMemberGroup.value, document.ntauth_prop.newMemberGroup.value, false, false); document.ntauth_prop.ntMemberGroups.options[document.ntauth_prop.ntMemberGroups.options.length] = option; document.ntauth_prop.newMemberGroup.value = ""; } } function onInit() { member_groups = ""; first = true; // Remove the formatting string document.ntauth_prop.ntMemberGroups.options[0] = null; // Build up a string representation for the incoming options for (count = 0; count < document.ntauth_prop.ntMemberGroups.options.length; ++count) { if (!first) { member_groups += "+"; } else first = false; current_group = document.ntauth_prop.ntMemberGroups.options[count]; member_groups += current_group.value; } document.ntauth_prop.input_string.value = member_groups; document.ntauth_prop.input_domain.value = document.ntauth_prop.ntDefaultDomain.value; document.ntauth_prop.input_radio.value = document.ntauth_prop.alias_map_rad.value; checked_bool = document.ntauth_prop.ntAvail.checked; if (document.layers) { document.ntauth_prop.newMemberGroup.size = 40; document.ntauth_prop.ntDefaultDomain.size = 42; } else { document.ntauth_prop.newMemberGroup.size = 48; document.ntauth_prop.ntDefaultDomain.size = 50; } } // Handle resize when running Netscape function onResizeNetscape() { if (navigator.appName == "Netscape") { onInit(); } } window.onresize = onResizeNetscape; </SCRIPT> <FORM action="%1" method="post" name="ntauth_prop"> <input type="checkbox" name="ntAvail" %2> NT Authentication is enabled <BR> <BR> Default NT Domain: <input name="ntDefaultDomain" value="%3"> <BR> <BR> Mapped NT Member Groups <BR> <table border=1 CELLSPACING=0> <tr><td><table> <tr> <td class="list">Add NT Group (NT Domain\Group): </td> <td class="list"><input name="newMemberGroup" ></td> <td rowpsan=2><table align=center> <tr><td> <table CELLPADDING="0" align=center border=0><tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:addGroup()" onMouseOver="StRight(102);window.status='';return true;" onMouseOut="Ht()">Add</a></div> </td> </tr></table> </td></tr> <tr><td> <table CELLPADDING="0" align=center border=0><tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:deleteGroup()" onMouseOver="StRight(103);window.status='';return true;" onMouseOut="Ht()">Delete</a></div> </td> </tr></table> </td></tr> </table></td> <tr> <td colspan=2> <table width=100%> <tr> <td class="list"> <SELECT class="menuFormElement" multiple NAME="ntMemberGroups" size=4 style="HEIGHT: 75px; WIDTH: 500px" width="500px"> <OPTION> This is a formatting string </OPTION> %4 </SELECT> </td> </tr> </table> </td> </tr> </td></tr></table> </table> <BR> <table> <tr><td class="list"><input type=radio name="alias_map_rad" value="mapAliasYes" %6> Assign each added NT alias to an account with the same name</td></tr> <tr><td class="list"><input type=radio name="alias_map_rad" value="mapAliasNo" %7> Create a new account for every added NT alias</td></tr> </table> <table align=center CELLPADDING="0" CELLSPACING="5" border=0> <tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:modifyForm();" onMouseOver="St(7);window.status='';return true;" onMouseOut="Ht()">Update</a></div> </td> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:document.ntauth_prop.reset();" onMouseOver="St(8);window.status='';return true;" onMouseOut="Ht()">Reset</a></div> </td> </tr> </table> <input type=hidden name="input_string"> <input type=hidden name="input_domain"> <input type=hidden name="input_radio"> <input type=hidden name="ntFinalMemberGroups"> <input type=hidden name="ntAvailable"> </FORM> </BODY> </HTML>